/**
 * 请求服务器数据 
 * [
 *     {
 *        id:1,
 *        title:'xxx',
 *        isDone:true
 *     }
 * 
 * ]
 * 
 */

interface ITodo{
   id:number,
   title:string,
   isDone:boolean 
}
// 自定义类型：关键字用 type
type ITodos = ITodo[]

let todos:ITodos = [
    {
        id:1,
        title:'xxx',
        isDone:true
    }
]


